package com.data.permission.transf;

import lombok.Data;

/**
 * @包名称 com.thrift.distributed.process
 * @类描述 <pre></pre>
 * @作者 zhangbo
 * @创建时间 2019/9/19
 * @版本 1.00
 * @修改记录 <pre>
 *     版本           修改人         修改日期         修改内容描述
 *     -----------------------------------------------------------
 *     1.00           Lenovo        2019/9/19
 *     -----------------------------------------------------------
 * </pre>
 */
@Data
public class ServiceInfo {

    private String serviceHost;

    private int servicePort;

    private int timeout = 10000;

    public ServiceInfo(String serviceHost,String servicePort) {
        this.serviceHost = serviceHost;
        this.servicePort = Integer.parseInt(servicePort);
    }


    public ServiceInfo(String serviceHost,Integer servicePort) {
        this.serviceHost = serviceHost;
        this.servicePort = servicePort;
    }
}
